import datetime
from django.shortcuts import render


# Create your views here.
# 模板
def index(request):
    data = {
        "name": "zhangsan",
        "age": 18,
        "hobby": ["篮球", "足球", "乒乓球"],
        "address": {"city": "北京", "street": "朝阳区"},
        "starts": [["马云", "马斯克"], ["雷军", "王健林"], ["马化腾", "刘强东"]],
        "is_detected": True,
        "dt": datetime.datetime.now(),
    }
    return render(request, "index.html", data)


def block(request):
    # pass
    return render(request, "block.html")


def child(request):
    return render(request, "child.html")
    # pass
